package com.fwj.designpattern.singleton;

/**
 * Project Name: fwj
 * Author: fhw
 * File Name: staticClassSingleton 静态内部类
 *
 * Package Name: com.fwj.designpattern.singleton
 * Date: 2020/7/4 11:58 下午
 * Copyright (c) 2020,All Rights Reserved.
 */
public class InnerClassSingleton {

    private InnerClassSingleton() {
    }

    static class InterClass {
        private static InnerClassSingleton instance = new InnerClassSingleton();
    }

    public static InnerClassSingleton getInstance() {
        return InterClass.instance;
    }

}